<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		.box{
			width: 200px;
			height: 200px;
			background: red url() 0 0 no-repeat;
			/*display: none;*/
			position: absolute;
		}
	</style>
	<script src="./jquery.min.js"></script>
	<script>
		$(function(){

			$('.box').hover(function() {
				$('.box').stop().animate({'width': "1000px"}, 1000);
			}, function() {
				$('.box').stop().animate({'width': "200px"}, 1000);
			});
			
			// $('.btn').click(function(event) {
			// 	$('.box').animate({'left': "1000px"}, 2000);
			// });
		})
	</script>
</head>
<body>
	<input type="button" class="btn">
	<div class="box">
		
	</div>
</body>
</html>